package com.pigs.pigsordersystem.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author PIGS-猪农·杨
 * @version 1.0
 * @date 2020/2/14 0:04
 */
@Controller
@Api(description = "/页面跳转控制器")
public class HomeController {

    /**
     * 进入商城首页
     *
     * @return
     */
    @ApiOperation(value = "进入商城首页")
    @GetMapping("/shop/products.html")
    public String index() {
        return "shop/products";
    }


    /**
     * 用户登录
     */
    @ApiOperation(value = "客户登录")
    @GetMapping("/user/login")
    public String login() {
        return "users/login";
    }



}
